package com.example.last.service;

import com.example.last.dao.PaperQuestionsDao;
import com.example.last.entity.PaperQuestions;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PaperQuestionsService {
    @Resource
    private PaperQuestionsDao paperQuestionsDao;


    public void add(PaperQuestions paperQuestions) {
        paperQuestionsDao.add(paperQuestions);
    }

    public void update(PaperQuestions paperQuestions) {
        paperQuestionsDao.update(paperQuestions);
    }

    public void delete(Integer id) {paperQuestionsDao.delete(id);}

    public void save(List<PaperQuestions> list) {
        paperQuestionsDao.save(list);
    }
}
